home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / Rsrc Compare by Procedure / GetRsrcVersion.c next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  845 b   |  31 lines  |  [TEXT/MPS ]

  1. #ifndef __VersionCompareHeader__
  2. #include "VersionCompareHeader.h"
  3. #endif
  4.  
  5. #ifndef __AtomExtenderHeader__
  6. #include "AtomExtenderHeader.h"
  7. #endif
  8.  
  9.  
  10. long GetRsrcVersion( ComputeVersionPBPtr myComputeVersionPBPtr ) 
  11. {
  12.     long    theVersionNumber = 0;
  13.     long    theCount = 4;
  14.  
  15.     ReadTargetData( myComputeVersionPBPtr->fCallBackProcPtr, 
  16.                     &theCount, (Ptr)&theVersionNumber );
  17.  
  18.     return theVersionNumber;
  19. }
  20.  
  21. // Because this include contains functions that
  22. // will be compiled, and we want to make sure
  23. // that our main entry point 'GetRsrcVersion()'
  24. // is placed at the top of the code resource
  25. // that is generated, this include statement
  26. // is put at the end of this file. Even better
  27. // method would be to compile this included file
  28. // as a seperate library and to link that library
  29. // to the GetRsrcVersion() object file.
  30. #include "AtomExtenderCBGlue.c"
  31.